import axios from "axios";

axios.defaults.timeout = 5000
axios.defaults.baseURL = 'http://1.14.68.137:8000'

axios.interceptors.request.use((res) => {  //拦截器    如果有假的接口则baseurl 为空
    // console.log(res);
    if (res.url.includes('/api')) { 
        res.baseURL=''
    }  
    return res
})

export default axios